package cn.zwz.home.entity;

import cn.zwz.basics.baseClass.ZwzBaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.math.BigDecimal;

/**
 * @author 郑为中
 */
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@Table(name = "a_task")
@TableName("a_task")
@ApiModel(value = "作业")
public class Task extends ZwzBaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "学生ID")
    private String studentId;

    @Transient
    @TableField(exist=false)
    @ApiModelProperty(value = "学生姓名")
    private String studentName;

    @ApiModelProperty(value = "作业名称")
    private String title;

    @ApiModelProperty(value = "成绩")
    private BigDecimal value;

    @ApiModelProperty(value = "作业附件")
    private String fileUrl;

    @ApiModelProperty(value = "完成附件")
    private String finishUrl;
}